package site.anxuan.seckill.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.math.BigDecimal;
import java.sql.Timestamp;

/**
 * 订单实体类
 *
 * @author 黯玄
 * @since v1.0
 */
@Data
@ToString
@Accessors(chain = true)
@NoArgsConstructor
@AllArgsConstructor
public class Order {

    /** 订单号 */
    private String id;

    /** 用户 ID */
    private Integer userId;

    /** 商品 ID */
    private Integer itemId;

    /** 活动 ID */
    private Integer promotionId;

    /** 商品活动单价 */
    private BigDecimal orderPrice;

    /** 商品数量 */
    private Integer orderAmount;

    /** 订单总价 */
    private BigDecimal orderTotal;

    /** 订单生成时间 */
    private Timestamp orderTime;

}
